/**
 * 获取值
 * @param key 键
 * @example const res=get('key');
 */
export default function get(key: string) {
	const value = localStorage.getItem(key);
	if (!value) {
		return null;
	} else {
		return JSON.parse(value);
	}
}
